$(window).load(function(){
    var searchblock = document.getElementById('searchblock');
    var searchbtn = document.getElementById('searchbtn');
    searchbtn.onclick = function(e) {
        keyword = searchblock.value;
        console.log('searching:'+keyword);
        searchEventToServlet();
    }
    searchblock.onsubmit = function(e) {
        if(e.keyCode == 13) // enter pressed
        {
            keyword = searchblock.value;
            console.log('searching:'+keyword);
            searchEventToServlet();
        }
    } 
    console.log('searchinginit');
});

